package org.example.sensor.dox;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.CreatedBy;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.ReadOnlyProperty;

import java.time.LocalDateTime;

@AllArgsConstructor
@Data
@NoArgsConstructor
@Builder
public class SensorData {
    @Id
    @CreatedBy
    private String id;
    private double temp;
    private double hum;
    private int light;
    private int smoke;
    @ReadOnlyProperty
    private LocalDateTime timestamp;
}
